import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;


public class Main {
	
	public static void main(String[] args) throws Exception
	{
		FileInputStream fs = new FileInputStream("/Users/Zachary/Documents/test.txt");
		System.setIn(fs);
		Scanner scanner = new Scanner(System.in);
		
		String mdText = "";
		while(scanner.hasNextLine()){
			mdText += "\n" + scanner.nextLine();
		}
		
		String html = new HtmlGen().generate(mdText);
		System.out.println(html);
		scanner.close();
	}

}
